package com.example.walkingtour.maps;

import com.example.walkingtour.R;
import android.annotation.SuppressLint;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

/*
 * Not sure if we need this now, but let's leave it for the time being.
 */
@SuppressLint("ValidFragment")
public class TourMap extends Fragment {

	public TourMap(String tag) {
		Log.d("TourList", "Constructor: tag=" + tag);
	}

	public TourMap() {
		Log.d("TourList", "Constructor: default");
	}

	@Override
	public void onActivityCreated(Bundle savedInstanceState) {
		super.onActivityCreated(savedInstanceState);
		// this is really important in order to save the state across screen
		// configuration changes for example
		setRetainInstance(true);

	}

	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		// return inflater.inflate(R.layout.my_map_fragment, container, true);
		return inflater.inflate(R.layout.map_layout, container, false);
	}
}
